home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
clocks.arc
/
CLOCK1.DOC
< prev
next >
Wrap
Text File
|
1986-07-19
|
3KB
|
73 lines
Documentation for CLOCK Command
Screen clock is a short machine language program that prints the
day of the week,date,current time,and log-on time at the top of the screen
no matter what else your computer is doing. Clock relys on BIOS to handle
this has several fortunate consequences:
- Sysline(clock) updates are not redirected to a file if you are using
DOS file redirection.
- Sysline updates are not printed if you are echoing output to the printer
(but is printed if you press PrtSc for a screen dump.
- Screen Clock always updates the current "active" screen. It doesn't
matter if you switch from monochrome monitor to color,change pages in the
color screens, or even enter a graphics mode. Clock will always be there.
USING CLOCK
Just type in clock at the DOS prompt. A sysline similar to this will appear.
Wed Jan 01,1986 12:01A (00:01)
The day of the week,date,and current time are self-explainatory. The figure in
parentheses is the elasped time(in hours and minutes) since the clock command
was started or reset.
When you run clock from DOS you can select various options by appending
commands after typing CLOCK. Each command consists of a slash(/)symbol, a number
and or character. Here are the commands and options:
/Cn (Chime) where n is an integer from 0 to 3. /C0 means no chiming(the
default); /C1 makes clock chime hourly; /C2 chimes every half-hour,
and /C3 chimes every 15 minutes. Even if screen updates are turned off
Clock chimes as you told it to do.
/Un (Update) where n is an interger from 1 to 9. This sets how often screen
updates take place - n is the number of half seconds between updates.
The more frequent the updates,the more the more often the time is refreshed
HOWEVER, more frequent updates also make other programs run slower.
The default is /U2 (one second between updates).
/M (Military time). This selects Military (24 hour) time.
/S (Standard time). This selects standard 12-hour time with A.M./P.M.
marker. This is the default.
/R (Reset). This resets the logon timer. Screen clock resets itself to
00:00 when first run.
For example, typing CLOCK /U3/M/C1 at the DOS prompt loads and runs clock,
sets updates every 1 1/2 seconds,sets military time, and makes the clock chime
ever hour.
DISAPPEARING CLOCK
Occasionally, clock's Sysline may get in the way(hiding text printed on the
top line of the screen). You can make the time disappear by pressing:
CTRL and BOTH SHIFT keys simultaneously.
Pressing the combination again turns the Sysline back on.
Since Screen Clock maintains its own clock, it might not agree with the DOS
clock precisely. Generally, it's never more than 30 seconds off.
When you reset the system date or time type clock again to resync it.
Clock steals time from the running program,so if you are running a program
that is a heavy number cruncher you might want to turn the Sysline off to
improve the performance of the program.
This program and non abbrevated documentation appeared in the
April 1986 issue of Compute Magazine Page 107. Written by
Marc Sugiyama
This documentation and program was prepared for the CCLA network
by S. Cunningham 6-12-86